#include <stdio.h>

int main()
{	 	 		 	   	   
    int m, k;//1

    for (m = 1; m <= 99; m++)//1
    {	 	 		 	   	   
        k = m * m;//1
        if (k % 10 == m || k % 100 == m)//2
        {	 	 		 	   	   
            printf("m = %3d\t\tm * m = %6d\n", m, k);//1
        }
    }

    return 0;
}	 